import requests
import json




url = "https://www.zhipin.com/common/data/position.json"

headers = {
"authority": "www.zhipin.com",
"method": "GET",
"path": "/common/data/position.json",
"scheme": "https",
"accept": "*/*",
"accept-encoding": "gzip, deflate, br",
"accept-language": "zh-CN,zh;q=0.9",
"cookie": "lastCity=101010100; Hm_lvt_194df3105ad7148dcf2b98a91b5e727a=1561190898; __c=1561190898; __g=-; __l=l=%2Fwww.zhipin.com%2F&r=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3DccC0WrPId9Er9CriAaoR2Fu5UTjnlvuBSCR6194hgO6ytqRft7CpeEqqGYJCAYPX%26wd%3D%26eqid%3Df43634520001524d000000025d0de1ef; _uab_collina=156119089845497396322075; t=HP2JxngwnhMmSzUs; wt=HP2JxngwnhMmSzUs; __a=76335350.1561190898..1561190898.19.1.19.19; Hm_lpvt_194df3105ad7148dcf2b98a91b5e727a=1561191861",
"referer": "https://www.zhipin.com/bossweb/jobedit/0.html?ka=job-add-job",
"token": "8G7P2snVDVAYhVq",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36",
"x-requested-with": "XMLHttpRequest"
}

# data1=json.dumps(headers)

response = requests.get(url=url,headers=headers)
print(response.json()

response = requests.get(url,headers=headers).json()
itme =requests.get('data').get('code')
for i in  itme:
    ite = i.get('code')
    print(ite)



